package cn.dcw.pethome.system.mapper;

import cn.dcw.pethome.basic.mapper.BaseMapper;
import cn.dcw.pethome.system.domain.DictionaryDetail;

import java.util.List;

/*
部门管理
 */
public interface DictionaryDetailMapper extends BaseMapper<DictionaryDetail>{

    /*通过types_id查询单条数据*/
    DictionaryDetail findOneByTypesId(Long tid);

    //查询所有上级部门（2级联动）
    List<DictionaryDetail> getTree();

    //通过type_id查询对象
    List<DictionaryDetail> findDetailes(Long id);
}
